<!--
Pour html2pdf : la balise <br/> est reconnu qu'en php.
-->

<link type='text/css' href="<?php echo CHEMIN_STYLES.'FicheActionComm.css';?>" rel='stylesheet'>
<div id='page'>
	<div id="table_premiere"><table>
		<tr class="celluleCentrer">
			<td class='colonne1'><img alt="logo_iut" src="<?php echo CHEMIN_IMAGES.'logo_iut_annecy.png';?>"></td>
			<td class='colonne2'><h1> Fiche D'ACTION DE COMM <?php echo "<br/>".$annee_scolaire; ?></h1></td>
			<td class='colonne3'><img alt="logo_info" src="<?php echo CHEMIN_IMAGES.'logo_departement_info.png';?>"></td>
		</tr>
		<tr>
			<td class='colonne1'><h2><?php echo $code_adc;?></h2></td>
			<td colspan='2' class='colonne2'><h2><?php echo $adc->get_titre();?></h2></td>
		</tr>
		<tr>
			<td class='colonne1'>Description</td>
			<td colspan="2" id="colonne2"><?php echo $adc->get_commentaire() ?></td>
		</tr>
		<tr>
			<td class='colonne1'>Tâches à réaliser</td>
			<td class='colonne2' colspan="2">
				<div id="table_secondaire">
					<table>
						<tr>
							<th>Tâche</th>
							<th>Echéance</th>
							<th class='DerniereColonne'>Responsable</th>
						</tr>
						<?php
							foreach($taches as $t)
							{
								echo 	'
											<tr>
												<td>'.$t->get_libelle().'</td>
												<td>'.$t->get_echeance().'</td>
												<td class=\'DerniereColonne\'>'.$t->get_etudiantFromArchive()->get_nom().' '.$t->get_etudiantFromArchive()->get_prenom().'</td>
											</tr>
										';
							}
						?>
					</table>
				</div>
			</td>
		</tr>
		<tr>
			<td class='colonne1'>Echéances</td>
			<td colspan='2' class='colonne2'>
				<ul>
					<li><?php echo $adc->get_date_deroulement() ?></li>
				</ul>
			</td>
		</tr>
		<tr>
			<td class='colonne1'>Etudiants</td>
			<td colspan='2' class='colonne2'>
				<ul>
					<?php
					 	foreach($etudiants as $e)
							echo '<li>'.$e->get_nom().' '.$e->get_prenom().' - '.$e->get_td().'</li>';
					?>
				</ul>
			</td>
		</tr>
		<tr>
			<td class='colonne1'>Contact encadrant</td>
			<td colspan='2' class='colonne2'><?php echo $adc->get_enseignant()->get_nom().' '.$adc->get_enseignant()->get_prenom(); ?></td>
		</tr>
		<tr>
			<td class='colonne1'>Fournisseurs et budgets</td>
			<td class='colonne2' colspan="2">
				<div id="table_secondaire"><table>
					<tr>
						<th>Nature</th>
						<th>Budget</th>
						<th class='DerniereColonne'>Fournisseur</th>
					</tr>
					<?php
						foreach($depenses as $d)
						{
							echo 	'
										<tr>
											<td>'.$d->get_libelle().'</td>
											<td>'.$d->get_budget().' euros</td>
											<td class=\'DerniereColonne\'>'.$d->get_fournisseur().'</td>
										</tr>
									';
						}
					?>
				</table></div>
			</td>
		</tr>
		<tr>
			<td class='colonne1'>Recettes</td>
			<td class='colonne2' colspan="2">
				<div id="table_secondaire"><table>
					<tr>
						<th>Nature</th>
						<th class='DerniereColonne'>Budget</th>
					</tr>
					<?php
						foreach($recettes as $r)
						{
							echo 	'
										<tr>
											<td>'.$r->get_libelle().'</td>
											<td class=\'DerniereColonne\'>'.$r->get_budget().' euros</td>
										</tr>
									';
						}
					?>
				</table></div>
			</td>
		</tr>
		<tr>
			<td class='colonne1'>Bilan</td>
			<td class='colonne2' colspan="2">
				<?php
					echo 	'
								<h3>Point Positifs :</h3>
									<p>'.$fba->get_pointPositif().'</p><br/>
								<h3>Point Négatifs :</h3>
									<p>'.$fba->get_pointNegatif().'</p><br/>
								<h3>Bon à savoir :</h3>
									<p>'.$fba->get_bonASavoir().'</p><br/>
								<h3>Suggestion :</h3>
									<p>'.$fba->get_suggestion().'</p><br/>
							';
				?>
			</td>
		</tr>
	</table></div>
</div>